import winsound


duration = 1000  # millisecond
freq = 440  # Hz
winsound.Beep(freq, duration)



class People(object):
# 类属性
    country = 'China'

# 类方法，用classmethod来进行修饰
    @classmethod
    def get_country(cls):
        return cls.country

p = People()
print(p.get_country())  # 可以用过实例对象引用
print(People.get_country())  # 可以通过类对象引用